package org.example.test.model;

public class UserDetails {

	private String address;
	private Integer homeNumber;

	public static class Builder implements IBuilder<UserDetails> {

		private String address;
		private Integer homeNumber;

		public Builder() {
		}

		public Builder address(String address) {
			this.address = address;
			return this;
		}

		public Builder homeNumber(Integer homeNumber) {
			this.homeNumber = homeNumber;
			return this;
		}

		@Override
		public UserDetails build() {
			return new UserDetails(this);
		}

	}

	private UserDetails(Builder builder) {
		this.address = builder.address;
		this.homeNumber = builder.homeNumber;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getHomeNumber() {
		return homeNumber;
	}

	public void setHomeNumber(Integer homeNumber) {
		this.homeNumber = homeNumber;
	}

}
